home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / AquariumView.BackModule / FishBrain.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  636 b   |  39 lines

  1. #import <objc/Object.h>
  2. #import <appkit/graphics.h>
  3.  
  4. #define MAX_X_SPEED 50
  5. #define MAX_Y_SPEED 30
  6.  
  7. #define LEFT    0x01
  8. #define RIGHT    0x02
  9. #define UP    0x04
  10. #define DOWN    0x08
  11.  
  12. @interface FishBrain:Object
  13. {
  14.     id    body;
  15.     float    WIDTH;
  16.     float    HEIGHT;
  17.     float    xpos;
  18.     float    xspeed;
  19.     float    ypos;
  20.     float    yspeed;
  21.     float    angle;
  22.     int    direction;
  23.     NXSize    sizeOfAquar;
  24.  
  25. }
  26.  
  27. -init:(NXSize *)drawingSize fishSize:(NXSize *)mysize owner:mybody;
  28. -(float)getXSpeed;
  29. -(float)getYSpeed;
  30. -(float)getXPos;
  31. -(float)getYPos;
  32. -(NXPoint)getCurrentPoint;
  33. -(float)getAngle;
  34. -(int)getDirection;
  35. -viewDidResize:(NXSize *)newSize;
  36. - changeXDirection;
  37. - changeYDirection;
  38. @end
  39.